import request from '@/utils/request'

export function  getEmployeeList(params) {
  return request({
    url: '/park/sys/user',
    method: 'get',
    params
  })
}

export function  getEmployeeDetail(id) {
  return request({
    url: `/park/sys/user/${id}`,
    method: 'get'
  })
}

export function getroleList() {
  return request({
    url: '/park/sys/role',
    method: 'get'
  })
}

export function createEmployeeAPI(data) {
  return request({
    url: '/park/sys/user',
    method: 'post',
    data
  })
}

export function updateEmployeeAPI(data) {
  return request({
    url: `/park/sys/user/`,
    method: 'put',
    data
  })
}

export function deleteEmployeeAPI(id) {
  return request({
    url: `/park/sys/user/${id}`,
    method: 'delete'
  })
}
export function resetPassword(data){
  return request({
    url: `/park/sys/user/resetPwd`,
    method: 'put',
    data
  })
}